% a assymetric trapezoid with a mostly negative span
x = fuzzy_trapezoid(-300, -250, -125, 50); 

%% let's take a look at it
fuzzy_plot(x);
title('trapezoid x');

%% A strictly positive right-triangle
y = fuzzy_trapezoid(0, 0, 0, 130); 
%% Let's look at both
fuzzy_plot([x y]);
title('trapezoid and right triangle');

%% do subtraction both ways
xmy = fuzzy_subtract(x,y);
ymx = fuzzy_subtract(y,x);

%% let's see what we got
fuzzy_plot([xmy ymx]);
title('trapezoidal and right triangle difference');

%% square them both
sxmy = fuzzy_square(xmy);
symx = fuzzy_square(ymx);

%% Let's see how this shakes out
fuzzy_plot([sxmy symx]);

%% *gasp* they're identical. Let's see how close:
sse = sum(sum((sxmy - symx).^2))
